package com.bootdo.shop.dao;

import com.bootdo.shop.domain.CategoryDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 产品分类表
 * @author yhg
 * @email 1992lcg@163.com
 * @date 2017-12-14 14:42:35
 */
@Mapper
public interface CategoryDao {

	CategoryDO get(Long categoryId);
	
	List<CategoryDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(CategoryDO category);
	
	int update(CategoryDO category);
	
	int remove(Long category_id);
	
	int batchRemove(Long[] categoryIds);
	/***获取兄弟类型列表*/
	List<CategoryDO> getCategoryBrotherList(Long categoryId);
}
